package com.shuaibiao.service.base;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.shuaibiao.dao.base.BaseRoleMapper;
import com.shuaibiao.entity.base.BaseRole;
import com.shuaibiao.entity.base.BaseRoleExample;

@Service
public class BaseRoleService {
	
	@Autowired
	private BaseRoleMapper mapper;
	
	public int insert(BaseRole record){
		return mapper.insert(record);
	}

	public int deleteByPrimaryKey(Integer id){
		return mapper.deleteByPrimaryKey(id);
	}
	
	public int isuseThisRecord(Integer id){
		return mapper.isuseThisRecord(id);
	}
	
	public int updateByPrimaryKeySelective(BaseRole record){
		return mapper.updateByPrimaryKeySelective(record);
	}
	
	public List<BaseRole> selectByExample(BaseRoleExample example){
		return mapper.selectByExample(example);
	}
	
	public List<BaseRole> selectAll(BaseRole record){
		return mapper.selectAll(record);
	}
}
